package com.lizhi.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lizhi.menu.Dto.AttentionDto;
import com.lizhi.menu.domain.Attention;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lizhi
 * @date 2023-05-18
 */
@Mapper
public interface AttentionMapper extends BaseMapper<Attention> {

    /**
     * 查询关注信息中间列表
     *
     * @param dto 关注信息中间
     * @param page
     * @return 关注信息中间集合
     */
    Page<Attention> selectAttentionList(@Param("page") Page<Attention> page,@Param("Attention") AttentionDto Attention);

    /**
     * 修改关注信息中间
     *
     * @param attention 关注信息中间
     * @return 结果
     */
    int updateAttention(Attention attention);

    /**
     * 批量删除关注信息中间
     *
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteAttentionByUserIds(List<String> userIds);
}
